package com.zmn.oms.dubbo.interfaces.normal.order;

import com.zmn.common.dto2.ResponseDTO;
import com.zmn.oms.common.dro.normal.order.OrderIncomeDetailDRO;
import com.zmn.oms.common.dro.normal.order.OrderRelationDRO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;

import javax.validation.constraints.NotNull;

/**
 * 类描述：订单收入
 *
 * @author ligang
 * @since 2022/07/27 14:20
 */
@Api(
        value = "订单收入",
        tags = {"订单收入"}
)
public interface OrderIncomeListRemoteService {

    @ApiOperation(
            value = "根据工单号查询收入明细",
            response = ResponseDTO.class,
            tags = {"根据工单号查询收入明细"}
    )
    ResponseDTO<OrderIncomeDetailDRO> getOrderIncomeDetailByOrderIdAndWorkId(@NotNull(message = "订单号不能为空")
                                                                         @ApiParam(value = "订单号", required = true)
                                                                                 Long orderId,
                                                                             @NotNull(message = "工单号不能为空")
                                                                         @ApiParam(value = "工单号", required = true)
                                                                                 Long workId);
}
